package com.example.student.service.impl;

import com.example.student.mapper.LoginMapper;
import com.example.student.pojo.Admin;
import com.example.student.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl  implements LoginService {
    @Autowired
    private LoginMapper loginMapper;
    @Override
    public Admin login(String username, String password) {
        Admin admin = loginMapper.login(username,password);
        return admin;
    }
}
